<script>
    const item = new URL(location).searchParams.get("item");
    const id = Date.now().toString(16); 
    document.write(`
    <template>
        <li id="item${id}">            
            ${item}    
            <a href="delete.html?item=${id}#item${id}" target="htmz">[x]</a>
        </li>
        <li id="add" class="new">
            <slot name="children"></slot>
        </li>
    </template>
  `);
  </script>